import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import '../tip/kq_tip.dart';

/// 彩虹条上tips的构造器
class KqRbTipsBuilder {
  KqRbTipsBuilder({
    this.closeOnPanAgain = false,
    this.autoClose = true,
    this.aliveTime,
    this.tipDirection,
    this.windowPadding,
    this.arrowWidth,
    this.arrowHeight,
    this.backgroundColor,
    this.textColor,
    this.fontSize,
    this.tipsTextAlign,
    this.radius,
    this.tipsOffset,
  });

  /// 二次按下是否关闭
  final bool? closeOnPanAgain;

  /// 是否自动关闭
  final bool? autoClose;

  /// 气泡存活时间，自动关闭下生效
  final Duration? aliveTime;

  /// 气泡上下位置
  final TipDirection? tipDirection;

  /// 文本和窗口间的padding
  final EdgeInsets? windowPadding;

  /// 箭头宽
  final double? arrowWidth;

  /// 箭头高
  final double? arrowHeight;

  /// 背景色
  final Color? backgroundColor;

  /// 文本颜色
  final Color? textColor;

  /// 字体大小
  final double? fontSize;

  /// 文本align
  final TextAlign? tipsTextAlign;

  /// 圆角
  final Radius? radius;

  /// tips相对于彩虹条的偏移量
  final double? tipsOffset;
}
